package com.princess.demok.view

import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.widget.EditText
import android.widget.LinearLayout

/**
 * @author: xha
 * @date: 2021/7/9 11:11
 * @Description:
 */
class PsdView : LinearLayout {

    val arrayList: ArrayList<EditText> = arrayListOf()

    //密码框数量
    var edittextNum: Int = 6

    constructor(context: Context) : super(context) {

    }

    constructor(context: Context, attributeSet: AttributeSet) : super(context, attributeSet) {

    }

    constructor(context: Context, attributeSet: AttributeSet, defStyleAttr: Int) : super(
        context,
        attributeSet,
        defStyleAttr
    ) {
    }


    init {
        for (i in 0 until edittextNum) {

        }
    }


    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
    }


    override fun onDraw(canvas: Canvas?) {
        super.onDraw(canvas)

    }

}